import request from "@/utils/request";

export default {
  getAll() {
    return request({
      url: "/word/getAll",
      method: "get",
    });
  },
  getList(fileName, currentPage, pageSize) {
    return request({
      url: `/word/getList`,
      method: "get",
      params: { fileName, currentPage, pageSize },
    });
  },
  getTotal(fileName) {
    return request({
      url: `/word/getTotal`,
      method: "get",
      params: { fileName },
    });
  },
  deleteByURL(data) {
    return request({
      url: `/word/delete`,
      method: "post",
      data,
    });
  },
};
